package de.gwtprime.client.event;

import com.google.gwt.event.shared.GwtEvent;

import de.gwtprime.client.event.handler.ArticleSectionPostedEventHandler;
import de.gwtprime.shared.requestFactory.ArticleSectionProxy;

public class ArticleSectionPostedEvent extends GwtEvent<ArticleSectionPostedEventHandler>{

	
	public static Type<ArticleSectionPostedEventHandler> TYPE = new Type<ArticleSectionPostedEventHandler>(); 
	
	private ArticleSectionProxy articleSection;
	
	
	public ArticleSectionPostedEvent(ArticleSectionProxy articleSection) {
		this.articleSection = articleSection;
	}
	
	@Override
	public Type<ArticleSectionPostedEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(ArticleSectionPostedEventHandler handler) {
		handler.onArticleSectionPosted(this);
	}

	public ArticleSectionProxy getArticleSection() {
		return articleSection;
	}

	public void setArticleSection(ArticleSectionProxy articleSection) {
		this.articleSection = articleSection;
	}

}
